package com.jingdianjichi.oss.adapter;

import com.jingdianjichi.oss.entity.FileInfo;
import com.jingdianjichi.oss.adapter.StorageAdapter;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author:ZouChao
 * @Description:
 * @Date:Created in 17:04 2024/12/27
 * @Modified By:
 */

public class AliStorageAdapter implements StorageAdapter {

    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void upLoadFile(MultipartFile uploadFile, String bucket, String objectName) {

    }


    @Override
    public List<String> getAllBucket() {
        List<String> bucketsNameList = new ArrayList<>();
        bucketsNameList.add("aliyun");
        return bucketsNameList;
    }

    @Override
    public List<FileInfo> getAllFile(String bucket) {
        return null;
    }

    @Override
    public InputStream downLoad(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucket) {

    }



    @Override
    public void deleteObject(String bucket, String objectName) {

    }
}
